
public class Test {
	
	public static void main(String[] args) {
		int[] arr = {1,1,2,2,2,2,3,3,3,3,3,6};
		int temp = arr[0];
		int count = 1;
		int max = 1;
		for(int i = 0;i< arr.length;i++) {
			if(arr[i] == temp) {
				count++;
			}
			else {
				if(count > max) {
					max = count;
				}
				count = 1;
				temp = arr[i];
			}
		}
		System.out.println(max);
	}

}
